package ${model.packageName}.service;

import org.springframework.stereotype.Component;

import ${model.packageName}.model.${model.initUpperName}Model;
import ${model.packageName}.dao.${model.initUpperName}Dao;

import lombok.RequiredArgsConstructor;

@Component
@RequiredArgsConstructor
public class ${model.initUpperName}WriteService {

	private final ${model.initUpperName}Dao ${model.initLowerName}Dao;
	/**
	 * 创建${model.desc}
	 */
	public Boolean create${model.initUpperName}(${model.initUpperName}Model model) {
		return ${model.initLowerName}Dao.create${model.initUpperName}(model);
	}
	/**
	 * 修改${model.desc}
	 */
	public Boolean update${model.initUpperName}(${model.initUpperName}Model model) {
		return ${model.initLowerName}Dao.update${model.initUpperName}(model);
	}
	/**
	 * 删除${model.desc}
	 */
	public Boolean delete${model.initUpperName}(${model.initUpperName}Model model) {
		return ${model.initLowerName}Dao.delete${model.initUpperName}(model);
	}
}
